#ifndef MSGD_EPOLL_EVENT_H
#define MSGD_EPOLL_EVENT_H 1


#define MSGD_PROCESS_EVENT_UPDATE_TIME         1 //for msgd_epoll_process_events
#define MSGD_PROCESS_EVENT_POST_EVENTS         2 //for msgd_epoll_process_events
#define MSGD_PROCESS_EVENT_POST_THREAD_EVENTS  4 //for msgd_epoll_process_events

#define MSGD_CLOSE_EVENT    1
#define MSGD_DISABLE_EVENT  2
#define MSGD_FLUSH_EVENT    4

#define MSGD_READ_EVENT     EPOLLIN
#define MSGD_WRITE_EVENT    EPOLLOUT
#define MSGD_LEVEL_EVENT    0
#define MSGD_CLEAR_EVENT    EPOLLET
#define MSGD_ONESHOT_EVENT  0x70000000


#ifdef __cplusplus
extern "C" {
#endif

/*extern  int setnonblocking(int fd);


int epoll_init(int size);

int epoll_add(int ep,int fd,int event,int flags);

int epoll_read(int fd,char **buf,int *len);

int epoll_del(int ep,int fd);

int epoll_wait_new_connect(int ep,int listen_fd,struct epoll_event *events,int maxevents,int timeout);

int epoll_done(int ep);*/



#ifdef __cplusplus
}
#endif

#endif //MSGD_EPOLL_EVENT_H
